package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 错题表
 * @TableName t_error_practice
 */
@TableName(value ="t_error_practice")
@Data
public class ErrorPractice implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 题目类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 题目
     */
    @TableField(value = "content")
    private String content;

    /**
     * 题目选项
     */
    @TableField(value = "options")
    private String options;

    /**
     * 正确答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 用户答案
     */
    @TableField(value = "userAns")
    private String userAns;

    /**
     * 用户答案
     */
    @TableField(value = "explanation")
    private String explanation;
    /**
     * 知识点  json数组
     */
    @TableField(value = "knowledgePoints")
    private String knowledgePoints;
    /**
     * 建议
     */
    @TableField(value = "suggestion")
    private String suggestion;
    /**
     * 创建用户 id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 复习次数
     */
    @TableField(value = "reviewCount")
    private Integer reviewCount;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * (最后一次)复习时间
     */
    @TableField(value = "reviewTime")
    private Date reviewTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}